GET

Authorizations

x-api-key
string
header
required

Headers

bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

Path Parameters

desktop_session_id
string
required

Response

Success.

type
string
required

Always desktop_session.

Allowed value: "desktop_session"
id
string
required

Desktop session ID (dsn_...).

Pattern: ^dsn_[a-z2-7]{26}$
org_id
string
required
Pattern: ^org_[a-z2-7]{26}$
project_id
string
required

Project ID (proj_...).

Pattern: ^proj_[a-z2-7]{26}$
machine_id
string
required

Machine ID (mch_...).

Pattern: ^mch_[a-z2-7]{26}$
owner_id
string
required

Opaque authenticated principal that created the session, such as a user UUID or organization API key ID.

read_only
boolean
required
closed
boolean
required
state
enum<string>
required

A screen capture answers starting until the machine confirms it publishes (then live); tickets are issued and viewers connect meanwhile and receive the track once published. A start the machine does not confirm closes the session.

Available options:
open,
starting,
live,
closing,
closed
created_at
string<date-time>
required
capabilities
object
required
control
object
required
agent_id
string

The id /v1/agents uses (never the native agt_ id).

expires_at
string<date-time>

Screen capture keepalive deadline; ticket issuance does not extend it.

ticket
object

The first ticket, only in the answer of a create request that asked for one (ticket).

close_reason
enum<string>

Why the session ended, present once it is closed. capture_refused - the machine refused to publish its screen (opening again gets the same answer until something changes on the machine); capture_unconfirmed - the machine did not confirm the start in time; capture_lost - the machine stopped renewing a running capture; expired - the keepalive passed; closed_by_user - closed through POST /v1/desktop_sessions/{desktop_session_id}/close.

Available options:
closed_by_user,
expired,
capture_refused,
capture_unconfirmed,
capture_lost